import { Injectable, Logger, HttpException, HttpStatus } from '@nestjs/common';
import { NodeAuth } from 'node-auth0';

@Injectable()
export class ToolsService {
  private nodeAuth: NodeAuth;
  constructor() {
    this.nodeAuth = new NodeAuth();
  }

  // 检查用户明文密码  和数据库加密的密码是否一致
  checkPassword(password, sqlPassword) {
    return this.nodeAuth.checkPassword(password, sqlPassword);
  }
}
